package com.yunti.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunti.springboot.po.ScoreRule;
import com.yunti.springboot.po.SubItem;
import com.yunti.springboot.vo.req.ScoreRuleReq;
import com.yunti.springboot.vo.res.ScoreRuleRes;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ScoreRuleMapper extends BaseMapper<ScoreRule> {
    List<ScoreRule> selectAll();

    int updateByPrimaryKey(ScoreRule record);

    List<ScoreRuleRes> findPage(Page<ScoreRuleRes> page, ScoreRuleReq req);
}
